/**
 *
 */
package com.ybkj.daijia.server.service.impl;

import com.ybkj.daijia.server.mapper.InsuranceMapper;
import com.ybkj.daijia.server.model.Insurance;
import com.ybkj.daijia.server.service.InsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Shine
 *
 */
@Service
public class DefaultInsuranceService implements InsuranceService {

    @Autowired
    private InsuranceMapper insuranceMapper;


    @Override
    public Insurance findByOrder(Long orderId) {

        return insuranceMapper.selectByOrderId(orderId);
    }


}